package com.example.shopping2.a_c_fragment.car.adapter

import android.widget.CheckBox
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.shopping2.R
import com.example.shopping2.a_c_fragment.car.entity.ShipAddressEntity

class Address_Adapter : BaseQuickAdapter<ShipAddressEntity.DataBean, BaseViewHolder> {
    constructor() : super(R.layout.adress_item) {

    }

    override fun convert(holder: BaseViewHolder, item: ShipAddressEntity.DataBean) {
        holder.setText(R.id.item_mShipNameTv, "收款人:" + item.ship_user_name)
        holder.setText(R.id.item_mShipAddressTv, "收货地址:" + item.ship_address)
        var view = holder.getView<CheckBox>(R.id.mSetDefaultTv)
        view.isChecked = (item.ship_is_default == 0)
    }

}